import React from 'react';
import { InputNumber } from 'antd';
import { SchemaManageAPI } from '../../type';
interface IPropsType {
  id?: string;
  value?: any;
  onChange?: any;
  opt: SchemaManageAPI.ISearchList;
  type: string;
}

export const SearchInputNumber: React.FC<IPropsType> = (props) => {
  return (
    <InputNumber
      placeholder={props?.opt?.placeholder}
      onChange={props?.onChange}
      value={props.value ?? ''}
      style={{ width: '100%' }}
      min={props?.opt?.min}
      max={props?.opt?.max}
    />
  );
};
